SRC=DefaultMonitor.java HotswapClassLoader.java Hotswap.java Monitor.java SwapMonitor.java
CLS=${subst .java,.class, ${SRC}}
all: ${CLS}

${CLS}: ${SRC}
	javac ${SRC}

run: ${CLS}
	mkdir -p class
	cp DefaultMonitor.class class/MonitorImpl.class
	java Hotswap

swap: ${CLS}
	cp SwapMonitor.class class/MonitorImpl.class

clean:
	rm -rf class
	rm *.class
